// 引入依赖的配置文件模块
require(["config"], function(){
	// 引入依赖模块
	require(["jquery", "header","carousel"], function($){
		function Index() {
			this.loadCarousel();
		}
		
		$.extend(Index.prototype, {
			//加载轮播图
			loadCarousel: function() {
				$(".lb1").carousel({
					imgs : [
						{href:"#", src:"/images/lb1-1.jpg"},
						{href:"#", src:"/images/lb1-2.jpg"}
					],
					width: 714,
					height: 382,
					duration: 3000
				});
				$(".lb2").carousel({
					imgs : [
						{href:"#", src:"/images/1f-6.jpg"},
						{href:"#", src:"/images/lb1-2.jpg"}
					],
					width: 580,
					height: 310,
					duration: 3000
				});
			}
		});

		new Index();
	});
});